home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HyperLib 1997 Winter - Disc 1
/
HYPERLIB-1997-Winter-CD1.ISO.7z
/
HYPERLIB-1997-Winter-CD1.ISO
/
オンラインウェア
/
PRG
/
AEGetIcon sample.sit
/
AEGetIcon sample
/
Read Me
< prev
Wrap
Text File
|
1996-06-23
|
2KB
|
44 lines
About AEGetIcon.c
Revision 1.0.4
Released on: May 23, 1996
Web version: June 23, 1996
by Fumio Rokkaku
rokkaku@inetc.roland.co.jp
PXL01437@niftyserve.or.jp
http://www.inetc.roland.co.jp/~rokkaku/
AEGetIcon.c provides a function to obtain an icon suite of a file or
a folder using AppleEvents. It requests an icon data of an FSSpec to
Finder, receives the reply and creates a suite.
From the outside of the source code, you can call it using the following
interface.
extern OSErr GetIconSuiteFromFinder(FSSpecPtr hfsObj, Handle *suite);
Copy this prototype in your source code.
StdGetFolder.c is written based on a source code of FinderDrag written
by Nitin Ganatra at MacDTS.
I re-wrote it because the original FinderDrag implements many exception
handlers, and hence, we have to include a lot of related files. I found
it to be difficult to make use of the source code easily from other
programs. So I cut out the complex relations. You can simply use the
AEGetIcon.c likely a library.
I also separated a large function into several subroutines so that you
can make use of this not only for icons but also other file properties.
I think I added a few originality into this source code but it is fully
owing to the MacDTS sample. Respecting the DTS effort, I never claim
copyright concerning this source code. Also, I am not responsible to
any result when you make use of this. Use it at your own risk.
Notice:
To run the AEGetIcon.c, you need Scriptable Finder.
Use it under System 7.5 or greater. Otherwise use it under System 7.1.2
(System 7 Pro) with Scriptable Finder.
Enjoy!